package com.tuanzi.loan.business.entity.settlement;

import java.util.Date;

import javax.persistence.*;

import com.tuanzi.loan.core.entity.AuditEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author caiwanlin
 * @create 2018-01-18 10:00
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@Table(name = "loan_firstparty_data_change_record")
public class FirstpartyDataChangeRecord extends AuditEntity {
    private static final long serialVersionUID = 8048954975680114616L;
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 公司名称
     */
    @Column(name = "company_name")
    private String companyName;
    /**
     * 产品名称
     */
    @Column(name = "product_name")
    private String productName;
    /**
     * 合作模式
     */
    @Column(name = "cop_mode")
    private Integer copMode;
    /**
     * 结算类型 0：日结 1：周结
     */
    @Column(name = "settlement_type")
    private Integer settlementType;
    /**
     * 百分比的结算价格
     */
    @Column(name = "settlement_percent_price")
    private Double settlementPercentPrice;

    /**
     * 元的结算价格
     */
    @Column(name = "settlement_yuan_price")
    private Double settlementYuanPrice;
    /**
     * 结算开始时间
     */
    @Column(name = "settlement_start_time")
    private Date settlementStartTime;
    /**
     * 结算结束时间
     */
    @Column(name = "settlement_end_time")
    private Date settlementEndTime;
    /**
     * 旧的推广渠道
     */
    @Column(name = "old_spread_channel")
    private Integer oldSpreadChannel;
    /**
     * 新的推广渠道
     */
    @Column(name = "new_spread_channel")
    private Integer newSpreadChannel;
    /**
     * 旧的注册数
     */
    @Column(name = "old_register_count")
    private Integer oldRegisterCount;
    /**
     * 新的注册数
     */
    @Column(name = "new_register_count")
    private Integer newRegisterCount;
    /**
     * 旧的放款金额
     */
    @Column(name = "old_loan_amount")
    private Double oldLoanAmount;
    /**
     * 新的放款金额
     */
    @Column(name = "new_loan_amount")
    private Double newLoanAmount;
    /**
     * 旧的点击数
     */
    @Column(name = "old_click_count")
    private Integer oldClickCount;
    /**
     * 新的点击数
     */
    @Column(name = "new_click_count")
    private Integer newClickCount;
    /**
     * 旧的结算金额
     */
    @Column(name = "old_settlement_amount")
    private Double oldSettlementAmount;
    /**
     * 新的结算金额
     */
    @Column(name = "new_settlement_amount")
    private Double newSettlementAmount;
    /**
     * 回数表单创建人
     */
    @Column(name = "firstparty_creator")
    private String firstpartyCreator;
    /**
     * 回数表单创建时间
     */
    @Column(name = "firstparty_create_time")
    private Date firstpartyCreateTime;
    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;
    /**
     * 甲方回数表单id
     */
    @Column(name = "jiafang_id")
    private Long jiafangId;

    @Column(name = "company_id")
    private Long companyId;

    @Transient
    private Integer isEdit=0;//是否编辑过
}
